import { SkillEntity } from "./SkillEntity";

// assets/ecs/ext/skill/SkillComponent.ts
export class SkillComponent {
    protected _entity: SkillEntity|null = null;
    
    // 组件附加到实体时调用
    public onAttach(entity: SkillEntity): void {
        this._entity = entity;
    }
    
    // // 组件从实体分离时调用
    // public onDetach(): void {
    //     this._entity = null;
    // }
    
    // 技能被打断时调用
    public onInterrupt(): void {
        // this.onDetach();
    }

    public start(): void {
        // 
    }

    public onEnable(): void {
    }

    public onDisable(): void {
    }
    
    // 更新组件
    public update(dt: number): void {
    }
}